/*
 * Created on Feb 25, 2005
 *
 * TODO To change the template for this generated file go to
 * Window - Preferences - Java - Code Style - Code Templates
 */
package net.jxta.myjxta.plugins.vojxta;

import net.jxta.myjxta.MyJXTA;
import net.jxta.myjxta.View;
import net.jxta.myjxta.dialog.OneToOneCommandDialog;
import net.jxta.myjxta.dialog.OneToOneDialog;
import net.jxta.myjxta.plugin.PluginView;
import net.jxta.myjxta.util.Group;
import net.jxta.protocol.PipeAdvertisement;
import net.jxta.util.JxtaBiDiPipe;

import java.util.logging.Logger;


/**
 * @author Ravi
 * @modified 2005-27-02 jamoore add logging
 */


public final class VoJxtaDialog extends OneToOneCommandDialog {


    public static final String IMFREE_DIALOG_NAME = IMFREE + "VOJXTADialog";
    public static final String DIALOG_NAME = IMFREE_DIALOG_NAME;

    private static final Logger LOG = Logger.getLogger(OneToOneDialog.class.getName());

    /**
     * @param group
     * @param pa
     * @param myJxta
     */
    public VoJxtaDialog(Group group, PipeAdvertisement pa, MyJXTA myJxta) {
        super(group, pa, myJxta);
        LOG.log(java.util.logging.Level.INFO, "new dialog for " + pa.getName());
        // TODO Auto-generated constructor stub
    }

    public PluginView getDialogPanel(View p_myJXTAView) {
        return new VoJxtaDialogView(p_myJXTAView, this);
    }

    /**
     * @param group
     * @param pipe
     * @param myJxta
     */
    public VoJxtaDialog(Group group, JxtaBiDiPipe pipe, MyJXTA myJxta) {
        super(group, pipe, myJxta);
        LOG.log(java.util.logging.Level.INFO,
                "new dialog for " + pipe.getPipeAdvertisement().getName());
        // TODO Auto-generated constructor stub
    }


}
